<?php
  
class ShippingInfo {

    # $address contains 5 fields: Street address, suite/number/unit, city, state, zip
    function __construct( $address, $name, $speed, $cost ) {
      $this->name = $name;
      $this->speed = $speed;
      $this->cost = $cost;
      
      $x = 0;
      foreach ($address as $location) {
        $this->address[$x] = $location;
        $x++;
      }
    }

}

?>
